import util from "@/utils/request";
let $axios = util
const getActiveList = (params) => {
    return $axios({
        url: '/api/getActivityList',
        method: 'get',
        params
    })
}
const saveActive = (data) => {
    return $axios({
        url: '/api/addActivity',
        method: 'post',
        data
    })
}
const getActiveDetail = (data) => {
    return $axios({
        url: `/api/queryActivityDetail/${data}`,
        method: 'get',
    })
}
const editActive = (data) => {
    return $axios({
        url: '/api/updateActivity',
        method: 'put',
        data
    })
}
const delActive = (data) => {
    return $axios({
        url: `/api/deleteActivity/${data}`,
        method: 'delete',
    })
}
export default {
    getActiveList,
    saveActive,
    getActiveDetail,
    editActive,
    delActive
}